﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditPassword.ascx.cs"
    Inherits="UserControls_EditPassword" %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script language="javascript" type="text/javascript">
    function IsNull()
    {
        if (document.getElementById('<%=this.txtOldPwd1.ClientID%>').value=="")
        {
            alert("请输入旧密码！");
            return false;
        }
         if (document.getElementById('<%=this.txtNewPwd1.ClientID%>').value.length<4||document.getElementById('<%=this.txtNewPwd1.ClientID%>').value.length>20)
        {
            alert("新一级密码长度不符合要求！");
            return false;
        }
       if (document.getElementById('<%=this.txtNewPwd2.ClientID%>').value.length<4||document.getElementById('<%=this.txtNewPwd2.ClientID%>').value.length>20)
        {
            alert("新二级密码长度不符合要求！");
            return false;
        }
        if (document.getElementById('<%=this.txtNewPwd1.ClientID%>').value!=document.getElementById('<%=this.txtPwd1.ClientID%>').value)
        {
            alert("二次输入的新一级密码不一致！");
            return false;
        }
        if (document.getElementById('<%=this.txtNewPwd2.ClientID%>').value!=document.getElementById('<%=this.txtPwd2.ClientID%>').value)
        {
            alert("二次输入的新二级密码不一致！");
            return false;
        }
    }
</script>

<table width="770" border="0" cellpadding="0" cellspacing="1" bgcolor="C5E4FF" style="text-align: left;">
    <tr>
        <td valign="top" bgcolor="#FFFFFF">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="3%" height="35" background="images/UserControls/bgbg.jpg">
                        <div align="center">
                            <img src="images/UserControls/dddd.jpg" width="9" height="27" /></div>
                    </td>
                    <td width="97%" background="images/UserControls/bgbg.jpg" class="STYLE3">
                       修改密码
                    </td>
                </tr>
                <tr>
                    <td height="1" bgcolor="C5E4FF">
                    </td>
                    <td bgcolor="C5E4FF">
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td align="right" id="tdtitle" runat="server">
                        原来的密码：
                    </td>
                    <td colspan="2" align="left" id="tdtitle1" runat="server">
                        <label>
                            &nbsp;<asp:TextBox ID="txtOldPwd1" runat="server" TextMode="Password"></asp:TextBox><span
                                class="red">*</span>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td align="right" id="tdfrist" runat="server">
                        新一级密码：
                    </td>
                    <td colspan="2" id="tdfrist1" runat="server" align="left">
                        &nbsp;<asp:TextBox ID="txtNewPwd1" runat="server" TextMode="Password"></asp:TextBox><span
                            class="red">*</span> 不少于四个字符，不多于二十个字符
                    </td>
                </tr>
                <tr>
                    <td align="right" id="tdre" runat="server">
                        重复新密码：
                    </td>
                    <td colspan="2" id="tdre1" runat="server" align="left">
                        &nbsp;<asp:TextBox ID="txtPwd1" runat="server" TextMode="Password"></asp:TextBox><span
                            class="red">*</span> 不少于四个字符，不多于二十个字符
                    </td>
                </tr>
                <tr>
                    <td id="tdsecond" runat="server" align="right">
                        新二级密码：
                    </td>
                    <td colspan="2" id="tdsecond1" runat="server" align="left">
                        &nbsp;<asp:TextBox ID="txtNewPwd2" runat="server" TextMode="Password"></asp:TextBox><span
                            class="red">*</span> 不少于四个字符，不多于二十个字符
                    </td>
                </tr>
                <tr>
                    <td align="right" id="tdrepsw" runat="server">
                        重复新密码：
                    </td>
                    <td colspan="2" id="tdrepsw1" runat="server" align="left">
                        &nbsp;<asp:TextBox ID="txtPwd2" runat="server" TextMode="Password"></asp:TextBox><span
                            class="red">*</span> 不少于四个字符，不多于二十个字符
                    </td>
                </tr>
                <tr>
                    <td height="5" colspan="3" align="right" class="black12">
                    </td>
                </tr>
                <tr>
                    <td height="26" align="right" class="black12">
                        &nbsp;
                    </td>
                    <td width="11%">
                        <label>
                            <asp:ImageButton ID="ibOK" runat="server" OnClick="ibOK_Click" OnClientClick="return IsNull()" /><a
                                href="#"></a></label>
                    </td>
                    <td width="74%" align="left">
                        <label>
                            <asp:ImageButton ID="ibCancel" runat="server" OnClick="ibCancel_Click" /><a href="#"></a></label>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>


         